package extend;

public class SonAndFather {
	
	public static void main(String[] args) {
		
		Son son = new Son();
		System.out.println(son.m);
		System.out.println(son.m2);
		
		son.program();
		son.tennis();
		
		Son s = new Son();
		
		Father f = new Son();
		
		f.program();
		
		Son ss = (Son)f;
		
		ss.tennis();
		
		
	}

}
